<template>
  <div class="bg">
    <div class="win">
      <div class="iconfont icon-xiaolian font"></div>
      <p>预约成功</p>
      <p>请您按时到小店就餐</p>
    </div>
    <div class="message">
      <p>预约信息</p>
      <div>
        预定时间: <span>{{ makes[0].arrivalTime }}</span>
      </div>
      <div>餐桌类型: <span>大厅(1-2)人桌</span></div>
      <div>就餐人数: <span>6人</span></div>
    </div>
    <div class="contacts">
      <p>联系人</p>
      <div>
        联系人: <span>{{ makes[0].linkman }}</span>
      </div>
      <div>性别: <span>男</span></div>
      <div>手机号: <span>1666666666</span></div>
      <div>备注: <span>无</span></div>
      <div class="time">提交预约时间: <span>2020-01-01 12.30</span></div>
    </div>
  </div>
</template>

<script>
import Vue from "vue";
import "@/assets/iconfont/iconfont.css";
import { Popup } from "vant";
Vue.use(Popup);
export default {
  data() {
    return {
      makes: {},
    };
  },
  props: {
    id: String,
  },
  async mounted() {
    let data = await this.$api.getMake(this.id);
    this.makes = data;
  },
  methods: {
    showPopup() {
      this.show = true;
    },
  },
};
</script>

<style lang="scss" scoped>
.win {
  .font {
    font-size: 90px;
    color: #3bb19c;
    text-align: center;
    margin-top: 40px;
  }
  p {
    font-size: 18px;
    margin-top: 15px;
    text-align: center;
    &:nth-of-type(2) {
      font-size: 14px;
      color: gray;
      margin-top: 3px;
    }
  }
}
.message {
  margin-top: 10px;
  padding: 15px;
  p {
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 400;
  }
  div {
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    span {
      font-size: 12px;
      color: gray;
    }
  }
}
.contacts {
  padding: 15px;
  p {
    font-size: 16px;
    margin-bottom: 25px;
    font-weight: 400;
  }
  div {
    margin-top: 10px;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    span {
      font-size: 12px;
      color: gray;
    }
  }
  .time {
    margin-top: 25px;
  }
}
</style>